'use strict';
/*
 * QA环境配置参数s
 */
module.exports = appInfo => {

  const config = exports = {};

  console.log('环境参数:', appInfo.env);

  // 数据库 开发环境
  config.mysql = {
    client: {
      host: '192.168.0.233',
      port: '3306',
      user: 'root',
      password: 'morefun1004',
      database: 'qa',
    },
    app: true,
    agent: false,
  };

  // redis 开发环境，
  exports.redis = {
    client: {
      port: 6379, // Redis port
      host: 'r-k2jnhb8f4okcix0ptc.redis.zhangbei.rds.aliyuncs.com', // Redis host
      password: 'WoDGXOxKR221w45W',
      db: 1,
    },
  };

  // log目录
  exports.logger = {
    consoleLevel: 'DEBUG',
    dir: '/acs/log',
  };

  // 端口
  config.cluster = {
    listen: {
      path: '',
      port: 8080,
      hostname: '0.0.0.0',
    },
  };

  return {
    ...config,
  };
};
